﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SangoBang
{
    class ActionFactory
    {
        public static Action GetAction(string message,Player sender,Player receiver)
        {
            switch (message)
            {
                case "kill" :
                    return new KillAction(sender, receiver);
                case "cure" :
                    return new CureAction(sender, receiver);
                case "miss" :
                    return new MissAction(sender, receiver);
                case "suffer" :
                    return new SufferAction(sender, receiver);
                default :
                    return null;
            }
        }
    }
}
